package com.dyh.quickdemo.demos.d1222lbd;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

import java.util.Collections;
import java.util.List;
import java.util.function.Function;

/*
@Author=Joey Wheeler
@Date=2020/12/22 10:11
*/
@Configuration
public class AisatsuServiceCenterConf {

    @Autowired
    List<AisatsuService> aisatsuServices = Collections.emptyList();

    @Bean
    AisatsuServiceCenter aisatsuService(  List<AisatsuService> aisatsuServices){
        AisatsuServiceCenter aisatsuServiceCenter = new AisatsuServiceCenter();
        aisatsuServiceCenter.services.addAll(aisatsuServices);
        return aisatsuServiceCenter;
    }
//
//    @Bean
//    Runnable pdd(){
//        return ()->hiService.hi("pdd") ;
//    }
//
//    @Bean
//    Runnable taobao(){
//        return ()->hiService.hi("taobao") ;
//    }

}
